<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
require_once './model/db.php';
$query = sprintf("SELECT * FROM pages LIMIT %u;", PER_PAGE);
$apps = getApps($query);
?>

<form method="POST">
    Company  :  <select>
        <?php foreach ($apps as $app): ?>
            <option><?php echo $app["name"] ?></option>
        <?php endforeach; ?>
    </select> <br>
    <input type="submit" name="submit" value="Search">
</form>

<table id="table2" border="1px">
    <tr class="khung">
        <td class="pid">STT </td>
        <td class="id">id </td>
        <td class="name">name </td>
    </tr>
    <?php foreach ($apps as $app): ?>
            <tr>
                <td><?php echo $app["pid"] ?></td>
                <td><?php echo $app["id"] ?></td>
                <td><?php echo $app["name"] ?></td>
            </tr>
    <?php endforeach; ?>
</table>
